package cz.anime.ppro.logic;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cz.anime.ppro.model.Notification;
import cz.anime.ppro.repositories.NotificationRepository;

@Component
public class NotificationComponentImpl implements NotificationComponent {

	@Autowired
	private NotificationRepository notificationRepository;
	
	@Override
	public List<Notification> getNotifications() {
		return notificationRepository.findAll();
	}

}
